<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title> 添加会员 </title>
		<jsp:include page="/WEB-INF/pages/base/inc/inc.jsp" />
		<script type="text/javascript" src="${BASE_PATH}static/lib/bootstrap/plugins/bootstrap-validator/js/bootstrapValidator-utils.js"></script>
		<script type="text/javascript" src="${BASE_PATH}static/base/regexp.js"></script>
		<script type="text/javascript" src="${BASE_PATH}static/js/member/member_edit.js"></script>
	</head>
	<body class="hold-transition skin-blue sidebar-mini">
		<div class="wrapper">
			<jsp:include page="/WEB-INF/pages/base/inc/header.jsp" />
	
			<jsp:include page="/WEB-INF/pages/base/inc/menu.jsp">
				<jsp:param
					value="${empty item.id ? '56ee0d3ce8ce11e5902d5065f33960fc' : '262e6020e8ce11e5902d5065f33960fc'}"
					name="menu" />
			</jsp:include>
	
			<div class="content-wrapper">
				<section class="content-header">
					<ol class="breadcrumb">
						<li class="active">会员管理</li>
						<li class="active">会员管理</li>
						<li class="active"><a href="${BASE_PATH}member/index.htm">会员列表</a></li>
						<li class="active">会员编辑</li>
					</ol>
				</section>
	
				<section class="content">
					<div class="box box-default box-common">
						<div class="box-header with-border">
							<c:if test="${empty item.id}">
								<h3 class="box-title">新增会员</h3>
							</c:if>
							<c:if test="${not empty item.id}">
								<h3 class="box-title">修改会员</h3>
							</c:if>
						</div>
						<div class="box-body">
							<form id="saveForm" class="form-horizontal" method="post">
								<div class="box-body container-fluid">
									<div class="row">
										<div class="row">
											<div class="col-sm-4">
												<div class="form-group">
													<label class="col-md-3 control-label">账号：</label>
													<div class="col-md-9">
														<input id="account" name="condition.name" value="${item.account}" class="form-control" placeholder="请输入用户名">
													</div>
												</div>
											</div>
											<div class="col-sm-4">
												<div class="form-group">
													<label for="contactWay" class="col-md-3 control-label">邀请人：</label>
													<div class="col-md-9">
														<input id="invokeCode" name="condition.invokeCode" value="${item.invokeCode}" class="form-control" placeholder="请输入邀请人">
													</div>
												</div>
											</div>
											<div class="col-sm-4">
												<div class="form-group">
													<label for="contactWay" class="col-md-3 control-label">邮箱：</label>
													<div class="col-md-9">
														<input id="email" name="condition.email" value="${item.email}"
															class="form-control" placeholder="请输入邮箱">
													</div>
												</div>
											</div>
										</div>

										<div class="row">
											<div class="col-sm-4">
												<div class="form-group">
													<label for="contactWay" class="col-md-3 control-label">密码：</label>
													<div class="col-md-9">
														<input id="password" name="condition.password" value="${item.password}" class="form-control" placeholder="请输入密码">
													</div>
												</div>
											</div>
											<div class="col-sm-4">
												<div class="form-group">
													<label for="contacts" class="col-md-3 control-label">手机号：</label>
													<div class="col-md-9">
														<input id="mobile" name="condition.mobile" value="${item.mobile}" class="form-control" placeholder="请输入手机号">
													</div>
												</div>
											</div>
											<div class="col-sm-4">
												<div class="form-group">
													<label for="identityNo" class="col-md-3 control-label">QQ：</label>
													<div class="col-md-9">
														<input id="qq" name="condition.qq" value="${item.qq}" class="form-control" placeholder="请输入QQ">
													</div>
												</div>
											</div>
										</div>
										<div class="row">
											<div class="col-sm-4">
												<div class="form-group">
													<label for="contactWay" class="col-md-3 control-label">二级密码：</label>
													<div class="col-md-9">
														<input id="twoPassword" name="condition.twoPassword" value="${item.twoPassword}" class="form-control" placeholder="请输入二级密码">
													</div>
												</div>
											</div>
											<div class="col-sm-4">
												<div class="form-group">
													<label class="col-md-3 control-label">昵称：</label>
													<div class="col-md-9">
														<input id="nickName" name="condition.nickName" value="${item.nickName}" class="form-control" placeholder="请输入昵称">
													</div>
												</div>
											</div>
											<div class="col-sm-4">
												<div class="form-group">
													<label for="item.status" class="col-md-3 control-label">状态：</label>
													<div class="col-md-9">
														<select name="condition.status" class="form-control">
															<option value="0" ${item.status == 0?'selected':'' }>正常</option>
															<option value="1" ${item.status == 1?'selected':'' }>禁用</option>
														</select>
													</div>
												</div>
											</div>
										</div>
									</div>
									<div class="form-group">
										<div class="col-md-12">
											<button class="btn btn-default pull-right" onclick="window.location.href='${BASE_PATH}member/index.htm';return false;">取&nbsp;消</button>
											<button id="submitMemberBtn" type="submit" class="btn btn-primary pull-right" style="margin-right: 5px;">保&nbsp;存</button>
										</div>
									</div>
								</div>
							</form>
						</div>
					</div>
				</section>
			</div>
		</div>
	</body>
</html>